package com.quanyan.user.mapper;

import com.quanyan.user.model.vo.request.admin.ReqAuctionInfoComplainantQuery;
import com.quanyan.user.model.vo.request.admin.ReqReserveComplainantQuery;
import com.quanyan.user.model.vo.request.admin.ReqUserComplainantQuery;
import com.quanyan.user.model.vo.response.admin.RespAuctionInfoComplainant;
import com.quanyan.user.model.vo.response.admin.RespComplainantCategory;
import com.quanyan.user.model.vo.response.admin.RespReserveComplainant;
import com.quanyan.user.model.vo.response.admin.RespUserComplainant;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by hua on 2016/8/24.
 */
public interface UserComplainantMapper {
    List<RespUserComplainant> queryUserComplainantList(ReqUserComplainantQuery userComplainantQuery);

    Integer selectCountByQuery(ReqUserComplainantQuery userComplainantQuery);

    List<RespReserveComplainant> queryReserveComplainantList(ReqReserveComplainantQuery reserveComplainantQuery);

    Integer reserveComplainantCount(ReqReserveComplainantQuery reserveComplainantQuery);

    List<RespAuctionInfoComplainant> queryAuctionInfoComplainantList(ReqAuctionInfoComplainantQuery auctionInfoComplainantQuery);

    Integer auctionInfoComplainantCount(ReqAuctionInfoComplainantQuery auctionInfoComplainantQuery);

    List<RespComplainantCategory> queryComplainantCategoryList(Integer complainantUid);

    void updateUserComplainant(@Param("id") Integer id, @Param("userStatus") Byte userStatus);
}
